import request from '@/utils/request'

// 查询货架管理列表
export function listShelves(query) {
  return request({
    url: '/manage/shelves/list',
    method: 'get',
    params: query
  })
}

export function voListShelves(query) {
  return request({
    url: '/manage/shelves/voList',
    method: 'get',
    params: query
  })
}

// 查询货架管理详细
export function getShelves(id) {
  return request({
    url: '/manage/shelves/' + id,
    method: 'get'
  })
}

// 新增货架管理
export function addShelves(data) {
  return request({
    url: '/manage/shelves',
    method: 'post',
    data: data
  })
}

// 修改货架管理
export function updateShelves(data) {
  return request({
    url: '/manage/shelves',
    method: 'put',
    data: data
  })
}

// 删除货架管理
export function delShelves(id) {
  return request({
    url: '/manage/shelves/' + id,
    method: 'delete'
  })
}
